//
//  HPWelcomeViewController.m
//  HPZZTong
//
//  Created by handpay on 14-3-18.
//  Copyright (c) 2014年 Handpay. All rights reserved.
//

#import "HPWelcomeViewController.h"
#import "ZZTongClientEngine.h"

@interface HPWelcomeViewController ()

@end

@implementation HPWelcomeViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.canSave = NO;
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    [ZZT_UIENG hideNavigationBar:YES];
    
    if(HP_Device_iPhone5){
        self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Default-568h"]];
        if (kVerChannel == VerChannelFengMang || kVerChannel == VerChannelQianBao) {
            return;
        }
    }else{
        self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Default"]];
    }
    UIImage* wordImage = [UIImage imageNamed:@"loadingwords.png"];
    
    
    CGRect frame = CGRectMake((ScreenWidth - wordImage.size.width) / 2, (ScreenHeight - wordImage.size.height) / 3, wordImage.size.width, wordImage.size.height);
    
    if(kVerChannel == VerChannelHeXin){
        frame.origin.y -= 80;
    }
    
    UIImageView* imageView = [[UIImageView alloc]initWithFrame:frame];
    imageView.image = wordImage;
    
    
    [self.view addSubview:imageView];
    [imageView release];

}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

@end
